package com.ewzj.bigdata.di.module;

import com.jess.arms.di.scope.ActivityScope;

import dagger.Module;
import dagger.Provides;

import com.ewzj.bigdata.mvp.contract.CommentListContract;
import com.ewzj.bigdata.mvp.model.CommentListModel;


@Module
public class CommentListModule {
    private CommentListContract.View view;

    /**
     * 构建CommentListModule时,将View的实现类传进来,这样就可以提供View的实现类给presenter
     *
     * @param view
     */
    public CommentListModule(CommentListContract.View view) {
        this.view = view;
    }

    @ActivityScope
    @Provides
    CommentListContract.View provideCommentListView() {
        return this.view;
    }

    @ActivityScope
    @Provides
    CommentListContract.Model provideCommentListModel(CommentListModel model) {
        return model;
    }
}